package com.ican.domain.common;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@MappedSuperclass
public class BaseEntity extends SuperEntity {

    /**实体状态，0：可用；1：不可用*/
    private byte dataStatus;
    /**实体增加时间*/
    private Date createTime;
    /**实体修改时间*/
    private Date modifyTime;
    
    @Column(name = "data_status", nullable = false)
    public byte getDataStatus() {
        return this.dataStatus;
    }
    public void setDataStatus(byte dataStatus) {
        this.dataStatus = dataStatus;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time", length = 19)
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "modify_time", length = 19)
    public Date getModifyTime() {
        return modifyTime;
    }
    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }
}
